package com.wing.bill.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.bill.model.entity.BillOrdInformation;
import com.wing.bill.model.response.BillOrdInformationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 账单表账单汇总-Dao
 *
 * @author
 */
@Mapper
public interface BillOrdInformationDao extends BaseMapper<BillOrdInformation> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<BillOrdInformationVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<BillOrdInformationVO> list4app(@Param("page") Page<BillOrdInformationVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    BillOrdInformationVO get4appById(Long id);

    HashMap queryBillCensus(@Param("last") LocalDateTime last, @Param("now") LocalDateTime now, @Param("type") String type);

    HashMap queryBillCensusDetail(@Param("billNo") String billNo);

    HashMap find(@Param("billNo") String billNo);
}
